package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.service.goods.SkuService;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/sku")
public class ElasticsearchController {

    @Reference
    private SkuService skuService;

    @PostMapping("/saveSkuToElasticsearch")
    public void saveSkuToElasticsearch(){
        System.out.println("saveSkuToElasticsearch++++++");
        skuService.saveSkuToElasticsearch();
    }
}
